package uk.co.agileworks.bidpirate.model;

import static uk.co.agileworks.bidpirate.model.Status.*;

import java.util.Arrays;
import java.util.List;

public enum Filter {

	ALL(ACTIVE, BIDDING, END, FAILED, LOST, UNSAVED, WATCH, Status.WON), 
	LIVE(ACTIVE, BIDDING, WATCH), 
	WON(Status.WON);
	
	private List<Status> status;

	private Filter(Status... status) {
		this.status = Arrays.asList(status);
	}
	
	public List<Status> getStatuses() {
		return status;
	}
	
	@Override
	public String toString() {
		return name().toLowerCase();
	}

}
